package com.atguigu.service;

import com.atguigu.entity.OrderInfo;
import com.atguigu.vo.OrderInfoVo;
import com.atguigu.vo.TradeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;

/**
 * <p>
 * 专辑属性值关联表 服务实现类
 * </p>
 *
 * @author Joe
 * @since 2024-11-15
 */
public interface OrderInfoService extends IService<OrderInfo> {

    //确认订单
    OrderInfoVo confirmOrder(TradeVo tradeVo);

    //提交订单
    HashMap<String, Object> submitOrder(OrderInfoVo orderInfoVo);

    //取消订单
    void cancelOrder(Long orderId);

    OrderInfo getOrderAndDetail(String orderNo);


    IPage<OrderInfo> getUserOrderByPage(Long userId, Page<OrderInfo> pageParam,String orderStatus);
}
